

export class UserModel {
    public id: number = 0;
    public userId: number = 0;
    public userName: string = "";
    public nickName: string = "";

    public static userList:Array<UserModel> = [];


    public static createModel(result:object){
        let model:UserModel = new UserModel();
        model.id = result["id"];
        model.userId = result["userid"];
        model.userName = result["username"];
        model.nickName = result["nickname"];
        return model;
    }

}